<template>
  <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
    <el-tab-pane label="已入库" name="first">
      <List v-if="activeName == 'first'" :state="2" />
    </el-tab-pane>
    <el-tab-pane label="未入库" name="second">
      <List v-if="activeName == 'second'" :state="1" />
    </el-tab-pane>
  </el-tabs>
</template>

<script setup lang="ts">
import { ref } from "vue";
import List from "./list.vue";

const activeName = ref<string>("first");
</script>

<style scoped lang="scss"></style>
